<extend name="layout/home" />
<block name="title"><title>汇盟通宝</title></block>
<block name="tit">汇盟通宝</block>
<block name="content">
<link href="__PUBLIC__/home/css/style/pay.css" type="text/css" rel="stylesheet">
<script src="__PUBLIC__/home/js/js/pay.js" language="javascript"></script>
<div class="weui_tab" style="background:#FFF;">
    <div class="weui_tab_bd">
        <div class="weui_tab_bd" style="margin-top:60px; margin-bottom:80px;">
        	<div class="pay">
            	<p>付款金额:<span>{$figure}</span>元</p>
                <p class="inpay_1">
                    <if condition="$tp eq 1">配送通宝币TBC：4950元
                        <elseif condition="$tp eq 2"/>配送通宝币TBC：9900元
                        <elseif condition="$tp eq 3"/>前32名配送通宝币TBC99000元
                        <else />前8名配送通宝币TBC396000元
                    </if>
                </p>
            </div>
            <div class="weui_cells_title">支付方式</div>
                <div class="weui_cells weui_cells_radio">
                    <label class="weui_cell weui_check_label" for="alipay">
                        <div class="weui_cell_bd weui_cell_primary">
                            <img src="__PUBLIC__/home/img/pay/pay-1.png" />
                        </div>
                        <div class="weui_cell_ft">
                            <input type="radio" class="weui_check" name="paysWay" id="alipay" value="alipay">
                            <span class="weui_icon_circle"></span>
                        </div>
                    </label>
                    <label style="display: none;" class="weui_cell weui_check_label" for="wechat">
                        <div class="weui_cell_bd weui_cell_primary">
                            <img src="__PUBLIC__/home/img/pay/pay-2.png" />
                        </div>
                        <div class="weui_cell_ft">
                            <input type="radio" name="paysWay" class="weui_check" id="wechat" value="wechatpay">
                            <span class="weui_icon_circle"></span>
                        </div>
                    </label>
                    <label id='jiejifukuan' class="weui_cell weui_check_label" for="yinlian">
                        <div class="weui_cell_bd weui_cell_primary">
                            <img src="__PUBLIC__/home/img/pay/pay-8.png" />
                        </div>
                        <div class="weui_cell_ft" data-toggle="modal" data-target="#exampleModal">
                            <input type="radio" name="paysWay" class="weui_check" id="yinlian" value="yinlian">
                            <span class="weui_icon_circle"></span>
                        </div>
                    </label>
                </div>
            <form action="__URL__/addOrder" method="post">
                <div class="btn-login" style="bottom:0px; width: 100%;">
					<input class="add weui_btn weui_btn_primary" type="submit" value="确 认 付 款">
    			</div>
                <input type="hidden" name="pay_type" value="">
            </form>
        </div>
    </div>
</div>
<script>
$(function() {
	$(".weui_check_label").click(function(){
		var n=$(".weui_check_label").find("span").attr("class");
			i=$(this).index();
		if("n=weui_icon_circle"){
			$(this).find("span").attr("class","weui_icon_success");
			$(this).siblings().find("span").attr("class","weui_icon_circle");
		}else{
			$(this).find("span").attr("class","weui_icon_circle");
		}
        if(i==0){
            $('input[name=pay_type]').val("支付宝");
        }else if(i==1){
            $('input[name=pay_type]').val("微信");
        }else{
            $('input[name=pay_type]').val("银行转账");
        }
	});
});
</script>
</block>